package org.example.product.api;

import org.example.core.utils.R;
import org.example.product.api.domain.SkuEsModule;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 小杰_cc
 * @version 1.0
 */
@FeignClient("search-service")
public interface SearchService {

    @PostMapping("/search/backend/up")
    R<?> EsProductUp(@RequestBody SkuEsModule skuEsModule);

    @PostMapping("/search/backend/down")
    R<?> EsProductDown(@RequestBody List<Long> spuIds);

    @PutMapping("/search/backend/update")
    R<?> EsProductUpdate(@RequestBody SkuEsModule skuEsModule);
}
